<?php

// 添加优惠券、折扣券
$router->post('/create', 'CouponsController@create');
// 删除优惠券、折扣券
$router->get('/delete/{id:[0-9]+}', 'CouponsController@delete');
// 修改优惠券、折扣券
$router->post('/edit/{id:[0-9]+}', 'CouponsController@edit');
// 查询优惠券、折扣券
$router->get('/index/{id:[0-9]+}', 'CouponsController@index');
// 查询优惠券、折扣券
$router->get('/lists/{shop_id:[\w]+}/{page:[0-9]+}', 'CouponsController@lists');
/*----------------------------------------------------------------------*/
// 领取优惠券、折扣券
$router->get('/receive/{user_id:[\w,]+}/{id:[0-9]+}/{level:[0-9]+}/{distribution:[\w,]+}', 'CouponsController@receive');
// 用户优惠券、折扣券
$router->get('/has/{user_id:[\w,]+}/{page:[0-9]+}', 'CouponsController@has');
// 使用优惠券、折扣券
$router->post('/use', 'CouponsController@useCoupon');
// 退还优惠券、折扣券
$router->post('/rollback', 'CouponsController@rollback');